<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="../../common/EditUIHead.jsp"></jsp:include>
<title>组织</title>
</head>
<body style="padding:1px 3px 1px 3px;overflow:hidden">
	<div id="main">
		<div position="center">
			<form id="dataForm" class="l-form" action="${base }/basedata/org/save" method="post">
		  		<input type="hidden" id="dataId" name="id" value="${data.id}"/>
		  		<ul>
		  			<li class="field_label_li"><span style="color:red">*</span>编码：</li>
		  			<li style="width:182px;text-align:left;">
						<input name="number" id="number" validate="{required:true,maxlength:20}" type="text" value="${data.number}"/>
					</li>
					<li class="field_split_li"></li>
					<li class="field_label_li"><span style="color:red">*</span>名称：</li>
		  			<li style="width:182px;text-align:left;">
						<input name="name" id="name" validate="{required:true,maxlength:20}" type="text" value="${data.name}"/>
					</li>
		  		</ul>
		  		<ul>
		  			<li class="field_label_li"><span style="color:red">*</span>简拼：</li>
		  			<li style="width:182px;text-align:left;">
						<input name="simplePinyin" id="simplePinyin" validate="{required:true,maxlength:40}" type="text" value="${data.simplePinyin}"/>
					</li>
					<li class="field_split_li"></li>
		  			<li class="field_label_li">上级组织：</li>
		  			<li style="width:182px;text-align:left;">
						<div class="f7" id="parent" dataPickerUrl="${base}/basedata/org/orgDataPicker" width="750px" height="500px" title="组织" disabled="disabled">
	                		<input dataPicker="value"  name="parent.id" value="${data.parent.id}" id="parent.id" type="hidden" readOnly="readOnly" />
	                		<input dataPicker="name" ondblclick="openDataPicker('parent')" value="${data.parent.name}" name="parent.name" id="parent.name" type="text"/>
		        			<strong onclick="clearDataPicker('parent')"></strong>
		        			<span class="p_hov" onclick="openDataPicker('parent')"></span>
		        		</div>
					</li>
		  		</ul>
		  		<ul>
		  			<li class="field_label_li"><span style="color:red">*</span>启用日期：</li>
		  			<li style="width:182px;text-align:left;">
						<input name="effectiveDate" id="effectiveDate" validate="{required:true,maxlength:40}" type="text" value="<fmt:formatDate value="${data.effectiveDate}" pattern="yyyy-MM-dd"/>" ltype="date"/>
					</li>
		  			<li class="field_split_li"></li>
		  			<li class="field_label_li"></li>
		  			<li style="width:182px;text-align:left;">
		  					<label>
		  						<input name="cu" id="cu" type="checkbox" value="true" <c:if test="${data.cu == true}">checked="checked"</c:if>/>控制单元
		  					</label>
					</li>
		  		</ul>
		  		<!-- <ul>
		  			<li style="text-align:left;width: 80px">组织类型：</li>
		  			<li style="width:384px;text-align:left;">
		  				<c:forEach items="${orgTypes}" var="item">
		  					<label>
		  						<input name="orgType" id="orgType" type="checkbox" value="${item}" <c:if test="${fn:indexOf(data.orgType,item) > -1}">checked="checked"</c:if>/>${item.name }
		  					</label>
		  				</c:forEach>
					</li>
		  		</ul>
		  		 -->
		  		<ul>
		  			<li class="field_label_li">描述：</li>
		  		</ul>
		  		<ul>
		  			<li style="text-align:left;width:80px"></li>
		  			<li style="width:500px;text-align:left;padding-left: 20px;">
						<textarea style="height:100px;width:100%" name="description">${data.description}</textarea>
					</li>
		  		</ul>
			</form>
		</div>
	</div>
</body>
</html>